import lmlogo from '@/assets/images/lmlogo.ico'
import customerLogo from '@/assets/images/imlogo128x128@2x.png'
import robotConsoleLogo from '@/assets/images/robotConsoleLogo.ico'
import dataconvertLogo from '@/assets/images/dataconvertLogo.ico'

const _datas: Array<DownloadCenterData> = [
    {
        id: "robotutil",
        name: '机器人助手',
        desc: '适用于挂微信、QQ机器人',
        iocnSrc: robotConsoleLogo,
        downUrl: 'http://download.zystorage.net.cn/app/oemapps/339723619766734848/Install-official.exe?filename=%E6%9C%BA%E5%99%A8%E4%BA%BA%E5%8A%A9%E6%89%8B-%E6%AD%A3%E5%BC%8F%E7%89%88%E5%AE%89%E8%A3%85%E5%8C%85.exe',
    },
    {
        id: "im",
        name: '客服系统',
        desc: '集成机器人消息，提升效率',
        iocnSrc: customerLogo,
        downUrl: 'http://file.zycloud.net.cn/zyfanliimv3/windows/FanLiIm_x64.msi',
    },
    {
        id: "loginutil",
        name: '本地助手',
        desc: '便于进服务器、登联盟',
        iocnSrc: lmlogo,
        downUrl: 'http://file.api.zycloud.net.cn/ZhiYiLianMengAssistant/%E6%9C%AC%E5%9C%B0%E5%8A%A9%E6%89%8B%E5%AE%89%E8%A3%85%E5%8C%85.exe',
    },
    {
        id: "migrate",
        name: '老系统导入',
        desc: '将老系统数据迁移到新系统',
        iocnSrc: dataconvertLogo,
        downUrl: 'http://file.api.zycloud.net.cn/yz_dataconvert/%E6%95%B0%E6%8D%AE%E8%BF%81%E7%A7%BB.exe',
    },
];
// 获取下载中心的数据
export const getDownloadCenterDatas = (): Array<DownloadCenterData> => {
    return _datas;
}
/**
 * 获取数据
 * @param id
 */
export const getDownloadCenterData = (id: string) => {
    return _datas.find(w => w.id == id);
}


// 下载中心数据
export interface DownloadCenterData {
    // id
    id: string
    // 软件名称
    name: string
    // 说明
    desc: string
    // 图标
    iocnSrc: string
    // 下载地址
    downUrl: string
}
